/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const patrolExamineRouter = {
  path: '/patrol',
  component: Layout,
  meta: {
    // title: '巡检管理',
    icon: 'patrol',
    roles: ['inspect']
  },
  children: [{
    path: 'patrolExamine',
    name: 'PatrolExamine',
    component: () => import('@/views/patrolExamine/index'),
    meta: {
      title: '巡检管理',
      // activeMenu: 'patrolExamine',
      icon: 'patrolExamine',
      roles: ['inspect:get']
    }
  },
  {
    path: 'createPatrol',
    name: 'CreatePatrol',
    hidden: true,
    component: () => import('@/views/patrolExamine/createPatrol'),
    meta: {
      title: '创建问题单',
      activeMenu: 'patrolExamine',
      roles: ['inspect:create'],
      parentRouter: {
        path: 'patrolExamine',
        meta: {
          title: '巡检管理'
        }
      }
    }
  },
  {
    path: 'edgePatrol',
    name: 'EdgePatrol',
    hidden: true,
    component: () =>
          import('@/views/patrolExamine/edgePatrol'),
    meta: {
      title: '问题单详情',
      activeMenu: 'patrol',
      roles: ['inspect:check'],
      parentRouter: {
        path: 'patrolExamine',
        meta: {
          title: '巡检管理'
        }
      }
    }
  },
  {
    path: 'detailPatrol',
    name: 'DetailPatrol',
    hidden: true,
    component: () =>
          import('@/views/patrolExamine/detailPatrol'),
    meta: {
      title: '问题单详情',
      activeMenu: 'patrol',
      parentRouter: {
        path: 'patrolExamine',
        meta: {
          title: '巡检管理'
        }
      }
    }
  }
  ]
}

export default patrolExamineRouter
